﻿@model Ecommerce.Areas.Manager.Models.Category

@{
    ViewBag.Title = "Edit category";
}
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    @Html.HiddenFor(model => model.CategoryID)
    
    <fieldset>
        <legend>Regist a category</legend>
        <p class="field-validation-error">
            @ViewBag.ErrorMsg
        </p>
        <div class="editor-label">
            @Html.LabelFor(model => model.CategoryName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CategoryName)
            @Html.ValidationMessageFor(model => model.CategoryName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Order)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Order)
            @Html.ValidationMessageFor(model => model.Order)
        </div>
        <p>
            <button type="submit">Submit</button>
        </p>
    </fieldset>
}
